using LogService.Interface;

namespace LogService.Implement;

public class FileLogger : ILogger
{
    private readonly string _filePath = "log.txt";

    public void Log(string message)
    {
        using (StreamWriter writer = new StreamWriter(_filePath, true))
        {
            writer.WriteLine(message);
        }
    }
}